home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6890 / text0000.txt < prev   
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  33 lines

  1. In a message of 27 Mar 96 Dennis Lee Bieber wrote:
  2.  
  3.  >> DC>> On a PC, the dir listings and updates are so much faster it isn't
  4.  >> even DC>> funny.  One has to wonder what the Amiga's doing that takes it
  5.  >> so long DC>> with a few dozen (hundred is even slower) listings in a
  6.  >> directory...
  7.  
  8.  >> >Sometimes the ASL-Requester is extremely slow -- I suppose this depends
  9.  >> >on heavy disk fragmentation.
  10.  
  11.  >> >But without any doubts WB needs some enhancement in this category!
  12.  
  13.  DLB>         As for another slowdown, consider the different structures in
  14.  DLB> the file system.  The Amiga directory blocks do not store file names. 
  15.  DLB> To do a directory, the Amiga has to follow every pointer (and chained
  16.  DLB> pointers) in a directory block to find the actual file header block
  17.  DLB> that contains the name string.
  18.  
  19.  DLB>         I don't know the MS-DOS system that well; I /think/ the
  20.  DLB> directory actually stores the file names.
  21.  
  22. Well, on DOS, the directory's hold the filename, and a pointer to the start of the file.
  23.  
  24. But, we can be glad we don't have that file system FAT, because instead of each block pointing to the next block, there is a structure called FAT in the beginning (and a copy in the end) of the disk.
  25.  
  26. That structure contains one entry per 'block', and that entry can be eitehr 16 or 12 bit (yes, uses 2 or one and a half byte each), and the FAT structure holds all info about how ALL files in the WHOLE disk is linked...
  27.  
  28. So, some minor disk read error, or maybe a faulty program, the whole partition is gone. You may recover some files, but only the first 512 bytes of them or so. Trust me, it happend more than once...
  29.  
  30. /Mats Magnusson, mats@plea.se
  31.  
  32.  
  33.